package net.oov.identify.model;

public class LengthModel extends CheckModelAdapter {

	private int[] lengthValid;
	
	public LengthModel(int[] lengthValid) {
		super();
		this.lengthValid = lengthValid;
	}

	public Boolean check(StatusNode ct, CharSequence cs) {
		for(int len:lengthValid){
			if(cs.length()==len){
				return Boolean.TRUE;
			}
		}
		return Boolean.FALSE;
	}
	
}
